﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class error500 : System.Web.UI.Page
{
    Exception _ex;
    protected Exception LastError
    {
        get
        {
            if (_ex == null)
            {
                _ex = Application["LastError"] as Exception;
                if (_ex == null)
                {
                    _ex = new Exception("发生未知错误.");
                }
                else
                {
                    Application["LastError"] = null;
                    if (_ex.InnerException != null)
                    {
                        _ex = _ex.InnerException;
                    }
                }
            }
            return _ex;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
    }
}
